From: Stefan Monnier Date: Thu, 24 Sep 2009 01:20:36 +0000 (+0000) Subject: (term-bold-attribute): New var. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~10332 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=69dcbf65e39a2a308bdaa5ae1d9e4de7cfb7c727;p=emacs.git (term-bold-attribute): New var. (term-handle-colors-array): Use it. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4a32655fa0a..b1378b18486 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-09-24 Ivan Kanis + + * term.el (term-bold-attribute): New var. + (term-handle-colors-array): Use it. + 2009-09-23 Nick Roberts * progmodes/gdb-mi.el (gdb-version): New variable. diff --git a/lisp/term.el b/lisp/term.el index 295f1e8d379..5a9caa34acd 100644 --- a/lisp/term.el +++ b/lisp/term.el @@ -3135,6 +3135,10 @@ See `term-prompt-regexp'." ;; New function to deal with ansi colorized output, as you can see you can ;; have any bold/underline/fg/bg/reverse combination. -mm +(defvar term-bold-attribute '(:weight bold)) + "Attribute to use for the bold terminal attribute. +Set it to nil to disable bold.") + (defun term-handle-colors-array (parameter) (cond @@ -3231,7 +3235,7 @@ See `term-prompt-regexp'." (elt ansi-term-color-vector term-ansi-current-bg-color)))) (when term-ansi-current-bold (setq term-current-face - (append '(:weight bold) term-current-face))) + (append term-bold-attribute term-current-face))) (when term-ansi-current-underline (setq term-current-face (append '(:underline t) term-current-face)))) @@ -3259,7 +3263,7 @@ See `term-prompt-regexp'." (elt ansi-term-color-vector term-ansi-current-bg-color)))) (when term-ansi-current-bold (setq term-current-face - (append '(:weight bold) term-current-face))) + (append term-bold-attribute term-current-face))) (when term-ansi-current-underline (setq term-current-face (append '(:underline t) term-current-face))))))